/*
 *
 */
package org.jiscinvolve.astrodabis.barberry.common.data;

import java.net.URI;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import org.junit.Test;
import org.junit.After;
import org.junit.Before;
import static org.junit.Assert.*;

/*
 *
 */
public abstract class JoinTestBase
extends DataTestBase
    {

    protected TapService service ;
    protected TapTable   tableone ;
    protected TapTable   tabletwo ;
    protected TapColumn  columnone ;
    protected TapColumn  columntwo ;
    protected TapRow     rowone ;
    protected TapRow     rowtwo ;

    @Before
    public void before()
        {
        super.before();

        service = womble().services().create(
            unique(
                URI.create(
                    "ivo://org.astrodabis.test/service/"
                    )
                ),
            "test-service"
            );
        tableone = service.tables().create(
            "test-table-one"
            );
        tabletwo = service.tables().create(
            "test-table-two"
            );
        columnone = tableone.columns().create(
            "test-column-one"
            );
        columntwo = tabletwo.columns().create(
            "test-column-two"
            );
        rowone = columnone.rows().create(
            unique(
                "row-one"
                )
            );
        rowtwo = columntwo.rows().create(
            unique(
                "row-two"
                )
            );
        }
    }

